package com.example.springaffair.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping("Test")
@RestController
public class LoggerController {
    private static Logger logger= LoggerFactory.getLogger(LoggerController.class);
    @RequestMapping("t1")
    public void print(){
        logger.info("打印日志");
    }
}
